how to find string is palindrome suing javascript